Skip to content

Alert for ingestion processing - #2821

Merged
bert-e merged 2 commits into
development/9.6from
improvement/BB-605-alert-for-ingestion-processing
Sep 29, 2026
Merged

bert-e merged 2 commits into
development/9.6from
improvement/BB-605-alert-for-ingestion-processing

Conversation

@benzekrimaha

@benzekrimaha benzekrimaha commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

The ingestion producer already increments s3_ingestion_source_operations_total for every source call, including getRaftId at setup. The 3% / 5% alerts mixed every op in one ratio, so a source that never attaches stayed quiet next to getRaftLog volume, and there was no render-and-test coverage for these rules

Issue: BB-605

@codecov

codecov Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.42%. Comparing base (9adb877) to head (4cb914f).
⚠️ Report is 10 commits behind head on development/9.6.

Additional details and impacted files

Impacted file tree graph
see 4 files with indirect coverage changes

Components Coverage Δ
Bucket Notification 80.25% <ø> (ø)
Core Library 83.43% <ø> (-0.18%) ⬇️
Ingestion 75.39% <ø> (-0.27%) ⬇️
Lifecycle 81.65% <ø> (ø)
Oplog Populator 85.83% <ø> (ø)
Replication 63.92% <ø> (ø)
Bucket Scanner 85.76% <ø> (ø)
@@                 Coverage Diff                 @@
##           development/9.6    #2821      +/-   ##
===================================================
- Coverage            76.51%   76.42%   -0.09%     
===================================================
  Files                  206      206              
  Lines                14450    14450              
===================================================
- Hits                 11057    11044      -13     
- Misses                3383     3396      +13     
  Partials                10       10              
Flag Coverage Δ
api:retry 9.18% <ø> (ø)
api:routes 8.95% <ø> (ø)
bucket-scanner 85.76% <ø> (ø)
ft_test:queuepopulator 10.69% <ø> (+0.03%) ⬆️
ingestion 12.70% <ø> (-0.02%) ⬇️
lib 8.95% <ø> (ø)
lifecycle 20.48% <ø> (+0.01%) ⬆️
notification 0.98% <ø> (ø)
oplogPopulator 0.13% <ø> (ø)
replication 18.76% <ø> (-0.10%) ⬇️
unit 57.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@benzekrimaha
benzekrimaha force-pushed the improvement/BB-846-retry-ingestion-reader-setup branch from bd6999f to 2f9c7f5 Compare August 20, 2026 13:15
@benzekrimaha
benzekrimaha force-pushed the improvement/BB-605-alert-for-ingestion-processing branch from 0e20eb4 to a682dd2 Compare August 20, 2026 13:16
@benzekrimaha
benzekrimaha force-pushed the improvement/BB-846-retry-ingestion-reader-setup branch 3 times, most recently from 570a524 to 24f4b57 Compare September 8, 2026 07:35
@francoisferrand
francoisferrand force-pushed the improvement/BB-846-retry-ingestion-reader-setup branch 2 times, most recently from bf0d146 to 4a35f25 Compare September 9, 2026 15:42
Base automatically changed from improvement/BB-846-retry-ingestion-reader-setup to development/9.6 September 9, 2026 15:57
@bert-e

bert-e commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Hello benzekrimaha,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval ⭐
/bypass_build_status Bypass the build and test status ⭐
/bypass_commit_size Bypass the check on the size of the changeset TBA ⭐
/bypass_incompatible_branch Bypass the check on the source branch prefix ⭐
/bypass_jira_check Bypass the Jira issue check ⭐
/bypass_peer_approval Bypass the pull request peers' approval ⭐
/bypass_leader_approval Bypass the pull request leaders' approval ⭐
/bypass_source_branch_lineage Bypass the cross-branch contamination check ⭐
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request.
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@benzekrimaha
benzekrimaha marked this pull request as ready for review September 11, 2026 07:54
Comment thread lib/queuePopulator/IngestionPopulator.js
Comment thread monitoring/ingestion/ingestion-producer-alert.yaml Outdated
Comment thread monitoring/ingestion/ingestion-producer-alert.yaml Outdated
# be resolved fails continuously. It is a handful of errors against the reads
# of every healthy source, so it only shows up on the absolute rate: the ratio
# alerts above stay far below their threshold when a single source is stuck.
- alert: IngestionProducerSourceSetupFailing

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this alert is a sub-class of the previous one (IngestionProducerSourceErrorRate5Percent) :

  • Why does it not report issues? Is this because of the threshold, or because one location's error may be lost in the other location's success, or because other calls are incorrectly reducing the ratio?
  • Should we adjust the threshold instead? Or skip some ops which are not relevant to the alert? Or sum by bucket/location?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it is the aggregation. A stuck source retries getRaftId every few seconds and those errors are drowned by getRaftLog successes from healthy sources. Lowering the ratio would noisy-alert on read errors and filtering the existing ratio to op="getRaftId" would fire, but then “error rate 5%” would mean setup failure...
The dedicated absolute rate on getRaftId, with for: 10m, is the smallest change that names this failure mode in my opinion

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A stuck source retries getRaftId every few seconds and those errors are drowned by getRaftLog successes from healthy sources.

  • most often there are not many sources : like a few, and often just one. in any case, each source is one location, and we documented limit is 10 locations
  • also in most cases, the locations are actually on the same server : so unlikely that one source fails while the others are fine

→ the aggregation could explain some corner case, but does not seem likely to explain the problem in every case?
→ the question still stands: we don't really care specifically that getRaftId failed, just that ingestion is not working. If the 5% alert is not working, it should be fixed, and we should avoid overlapping alerts : so we need to better understand what happens here before introducing a new alert which handles one case but leaves us "un-alerted" if it fails in the next line...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dropped IngestionProducerSourceSetupFailing and changed the 3% / 5% rules to sum by (op). A stuck setup is 100% errors on getRaftId; a later getRaftLog failure is the same alert on that op.

@benzekrimaha
benzekrimaha force-pushed the improvement/BB-605-alert-for-ingestion-processing branch from a682dd2 to 0c452ac Compare September 16, 2026 06:47
@bert-e

bert-e commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

The following reviewers are expecting changes from the author, or must review again:

@scality scality deleted a comment from bert-e Sep 16, 2026
@benzekrimaha

Copy link
Copy Markdown
Contributor Author

Assigning @DarkIsDude for review since Mael is on PTO

@benzekrimaha
benzekrimaha force-pushed the improvement/BB-605-alert-for-ingestion-processing branch from 0c452ac to 3c1e419 Compare September 21, 2026 09:29
@scality scality deleted a comment from bert-e Sep 22, 2026
@francoisferrand francoisferrand changed the title Improvement/bb 605 alert for ingestion processing BB-605: Alert for ingestion processing Sep 22, 2026
@francoisferrand francoisferrand changed the title BB-605: Alert for ingestion processing Alert for ingestion processing Sep 22, 2026
@benzekrimaha
benzekrimaha force-pushed the improvement/BB-605-alert-for-ingestion-processing branch from 3c1e419 to 922b7ff Compare September 22, 2026 13:46
Comment thread monitoring/ingestion/ingestion-producer-alert.yaml Outdated
A global error ratio hides a stuck getRaftId behind getRaftLog volume.
Summing by op pages that setup failure and a later getRaftLog failure
on the same 3% / 5% alerts.

Issue: BB-605
The ingestion alerts had no render-and-test step. Cover a stuck
getRaftId, a recovering setup, and a getRaftLog failure on the
same 3% / 5% rules.

Issue: BB-605
@benzekrimaha
benzekrimaha force-pushed the improvement/BB-605-alert-for-ingestion-processing branch from 922b7ff to 4cb914f Compare September 25, 2026 07:53
Comment thread .github/workflows/alerts.yaml
@bert-e

bert-e commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

@benzekrimaha

Copy link
Copy Markdown
Contributor Author

/approve

@bert-e

bert-e commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

In the queue

The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.

The changeset will be merged in:

  • ✔️ development/9.6

The following branches will NOT be impacted:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.6
  • development/9.0
  • development/9.1
  • development/9.2
  • development/9.3
  • development/9.4
  • development/9.5

This pull request does not target the following hotfix branch(es) so they
will be left untouched:

  • hotfix/7.8.0
  • hotfix/7.10.17
  • hotfix/7.10.2
  • hotfix/7.70.1
  • hotfix/7.4.9
  • hotfix/7.4.3
  • hotfix/9.0.7
  • hotfix/8.2.12
  • hotfix/7.4.10
  • hotfix/7.4.4
  • hotfix/7.9.0
  • hotfix/7.10.1
  • hotfix/7.4.8
  • hotfix/7.10.12
  • hotfix/7.4.2
  • hotfix/7.10.4
  • hotfix/7.4.1
  • hotfix/7.4.5
  • hotfix/7.6.0
  • hotfix/7.2.0
  • hotfix/7.70.12
  • hotfix/7.10.3
  • hotfix/7.4.7
  • hotfix/7.4.0
  • hotfix/7.4.6
  • hotfix/7.10.0
  • hotfix/7.10.8
  • hotfix/7.70.15
  • hotfix/9.0.4
  • hotfix/7.7.0

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of the admin team will
contact you to help resolve the matter.

IMPORTANT

Please do not attempt to modify this pull request.

  • Any commit you add on the source branch will trigger a new cycle after the
    current queue is merged.
  • Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of the admin team now.

The following options are set: approve

@bert-e

bert-e commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/9.6

The following branches have NOT changed:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.6
  • development/9.0
  • development/9.1
  • development/9.2
  • development/9.3
  • development/9.4
  • development/9.5

Please check the status of the associated issue BB-605.

Goodbye benzekrimaha.

@bert-e
bert-e merged commit 11f56c2 into development/9.6 Sep 29, 2026
24 checks passed
@bert-e
bert-e deleted the improvement/BB-605-alert-for-ingestion-processing branch September 29, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants